projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8d847
)
(regex_compile): Don't call SET_LIST_BIT with a
author
Kenichi Handa
<handa@m17n.org>
Tue, 28 Nov 2006 01:10:42 +0000
(
01:10
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Tue, 28 Nov 2006 01:10:42 +0000
(
01:10
+0000)
multibyte character.
src/ChangeLog
patch
|
blob
|
history
src/regex.c
patch
|
blob
|
history
diff --git
a/src/ChangeLog
b/src/ChangeLog
index f5b2efdf269583bfec8defd91bcdd98e35d9bd2c..3d3e844d5996e58e3bf951a69c214b0a4598271a 100644
(file)
--- a/
src/ChangeLog
+++ b/
src/ChangeLog
@@
-1,3
+1,8
@@
+2006-11-28 Kenichi Handa <handa@m17n.org>
+
+ * regex.c (regex_compile): Don't call SET_LIST_BIT with a
+ multibyte character.
+
2006-11-27 Chong Yidong <cyd@stupidchicken.com>
* s/aix4-2.h: Undefine _NO_PROTO. Suggested by Joe Buehler.
diff --git
a/src/regex.c
b/src/regex.c
index 32991346399546d8a9e40e5e187382d344ef3ff7..7967a481ae9917d8f83fff144449bc2a308dd012 100644
(file)
--- a/
src/regex.c
+++ b/
src/regex.c
@@
-2939,7
+2939,8
@@
regex_compile (pattern, size, syntax, bufp)
for (ch = 0; ch < 1 << BYTEWIDTH; ++ch)
{
int translated = TRANSLATE (ch);
- if (re_iswctype (btowc (ch), cc))
+ if (translate < 1 << BYTEWIDTH
+ && re_iswctype (btowc (ch), cc))
SET_LIST_BIT (translated);
}